home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Jul 90 / MacApp.Tech$ 7⁄13⁄90 / 1558-C & Pascal String Co-Jul90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  938 b   |  26 lines  |  [TEXT/GEOL]

  1. Item    2159873                         8-July-90        10:52PDT
  2.  
  3. From:   ARGII                           Argii Design Group, M Demeyer,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    C & Pascal String Conversion
  8.  
  9. Hi,
  10.  
  11. To print a C string in the MacApp Debugger window, we first converted
  12. it to a Pascal string by using 'c2pstr'.  As it turned out, Keith
  13. Rollin also suggested the same in his response to "printing C strings
  14. in Field" recently.  However, we just discovered (while doing something
  15. else) that both conversion routines "c2pstr" and "p2cstr" shift the bytes
  16. in BOTH source and destination strings.  It does not seem reasonalbe that
  17. the SOURCE string should be shifted also.  Are we right or should we be
  18. cautious?  If we are right, then are these conversion routines fixed in
  19. MPW 3.1 and Pascal 3.1?  (We are using MPW 3.0, Pascal 3.0 & MacApp 2.0ß9.)
  20.  
  21. Thanks,
  22.  
  23. Anh Nguyen
  24. Argii Design Group
  25.  
  26.